import request from '@/utils/request'

// 查询列表
export const listLabel=function(params){
  return request({
    method:'get',
    url:'/system/label/list',
    params
  })
}

// 查询详细
export const selectById = function(id){
  return request({
    method:'get',
    url:'/system/label/info/'+id,
  })   
}

// 新增
export const saveLabel=function(data){
  return request({
    method:'post',
    url:'/system/label/save',
    data
  })

}
// 修改
export function updateLabel(data) {
  return request({
    //url: '/aqsc/label',
    url: '/system/label',
    method: 'put',
    data: data
  })
}

// 删除

export const deleteById=function(id){
  return request({
    method:'delete',
    url:'/system/label/deletes/'+id

  })
}

/** 
export function listLabel(query) {
  return request({
    url: '/aqsc/label/list',
    method: 'get',
    params: query
  })
}
*/
/**
 *
export function addLabel(data) {
  return request({
    url: '/aqsc/label',
    method: 'post',
    data: data
  })
}
 */
/**
 *
export function getLabel(labelId) {
  return request({
    url: '/aqsc/label/' + labelId,
    method: 'get'
  })
}
 */
/** 
export function delLabel(labelId) {
  return request({
    url: '/aqsc/label/' + labelId,
    method: 'delete'
  })
}
*/



